<template>
  <div class="son">
      <h3>我是son.vue</h3>

      <slot name="top" :msg="msg" :list="list"/>
      <hr>
      <!-- 默认插槽 -->
      <slot :msg="msg" :list="list"/> 
  </div>
</template>

<script>
export default {

    data() {
        return {
            msg: 'son里的msg数据',
            list: [10,20,30]
        };
    },
}
</script>

<style>
    .son {
        width: 660px;
        height: 260px;
        background-color: #f00;
    }
</style>